package com.qf.day10;

import com.qf.day05.Cat;

public class Object {
    public static void main(String[] args) {
//        Cat cat1 = new Cat("小黄",2,"男");
//        Cat cat2 = new Cat("小黄",2,"男");
//        boolean equals = cat1.equals(cat2);
//        System.out.println(equals);


        String s1 = "hello";
        String s2 = "hello";
        boolean equals = s1.equals(s2);
        System.out.println(s1==s2);
        System.out.println(equals);

        String s3 = new String("hello");
        System.out.println(s1==s3);
        System.out.println(s1.equals(s3));

    }
}
